package com.ruoyi.carService.mapper;

import java.util.List;
import com.ruoyi.system.api.domain.OrderDetails;
import org.apache.ibatis.annotations.Mapper;
import com.ruoyi.system.api.domain.OrderCount;
import org.apache.ibatis.annotations.Param;


/**
 * 订单统计Mapper接口
 * 
 * @author ruoyi
 * @date 2024-09-07
 */
@Mapper
public interface OrderDetailsMapper
{

     //当日订单数量
    public int getTodayOrderCount();
//当日订单总金额
    public Long getTodayPayPriceSum();


    /**
     * 查询洗车订单
     * 
     * @param orderDetailsId 洗车订单主键
     * @return 洗车订单
     */
    public List<OrderCount> selectOrderCountList(@Param("startTime") String startTime,
                                                 @Param("endTime") String endTime);


    /**
     * 查询订单统计
     * 
     * @param orderDetailsId 订单统计主键
     * @return 订单统计
     */
    public OrderDetails selectOrderDetailsByOrderDetailsId(Long orderDetailsId);

    /**
     * 查询洗车订单列表
     * 
     * @param orderDetails 洗车订单
     * @return 洗车订单集合
     */
    public List<OrderDetails> selectOrderDetailsList(OrderDetails orderDetails);

    /**
     * 新增洗车订单
     * 
     * @param orderDetails 洗车订单
     * @return 结果
     */
    public int insertOrderDetails(OrderDetails orderDetails);

    /**
     * 修改洗车订单
     * 
     * @param orderDetails 洗车订单
     * @return 结果
     */
    public int updateOrderDetails(OrderDetails orderDetails);

    /**
     * 删除洗车订单
     * 
     * @param orderDetailsId 洗车订单主键
     * @return 结果
     */
    public int deleteOrderDetailsByOrderDetailsId(Long orderDetailsId);

    /**
     * 批量删除洗车订单
     * 
     * @param orderDetailsIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOrderDetailsByOrderDetailsIds(Long[] orderDetailsIds);
}
